package com.ftx.manager;

import com.ftx.common.enums.ErrorCodeEnum;
import com.ftx.common.util.ExceptionUtils;

/**
 * Created by fengtingxin on 2019/6/11.
 */
public class BaseManager {

    public void checkUpdateResult(int result) {
        if (result < 0) {
            ExceptionUtils.throwBusinessException(ErrorCodeEnum.UPDATE_ERROR);
        }
    }
}
